home *** CD-ROM | disk | FTP | other *** search
- TimerArithmetic.bas - Example of timer device arithmetic functions
- ==================================================================
-
- Derived from RKM example (c) Copyright 1992 Commodore-Amiga, Inc.
-
- This is a variant on the Commodore example "Using the Time Arithmetic
- Functions" taken from the Devices RKM p.295.
-
- The example shows how to use the functions available as part of the timer
- device. Three timevals are initialised, the timer.device opened and the base
- address of the device made available to BASIC, The timer functions can then
- be called to work on the timevals.
-
- The example will work on all non-obsolete versions of Workbench (V33 and
- above).
-
- Compiling
- ---------
- Load the TimerArithmetic_inc.bh file and Tokenise it (Program-Tokenise),
- making sure you have no token file selected in the File Options (Settings-
- Compiler-Files). Once you have your token file, set the File Options-Token
- File setting to the TimerArithmetic_inc.t file just created. Load the
- TimerArithmetic.bas file, compile & run it.
-